bitkeeper revision 1.40 (3e4d3d1cT1UtXot3hq1e1w8H9jqLFw)
authorkaf24@labyrinth.cl.cam.ac.uk <kaf24@labyrinth.cl.cam.ac.uk>
Fri, 14 Feb 2003 19:01:48 +0000 (19:01 +0000)
committerkaf24@labyrinth.cl.cam.ac.uk <kaf24@labyrinth.cl.cam.ac.uk>
Fri, 14 Feb 2003 19:01:48 +0000 (19:01 +0000)
traps.c:
  Fix embarrassing do_set_trap_table() behaviour.

xen-2.4.16/arch/i386/traps.c

index b8297fe3eb6c40bd36f6210eeb70e64480fb18ef..1505907b19be30afe84ecaf304ddf373b1d60f14 100644 (file)
@@ -563,7 +563,12 @@ long do_set_trap_table(trap_info_t *traps)
     trap_info_t cur;
     trap_info_t *dst = current->thread.traps;
 
-    memset(dst, 0, sizeof(*dst) * 256);
+    /*
+     * I'm removing the next line, since it seems more intuitive to use this 
+     * as an interface to incrementally update a domain's trap table. Clearing 
+     * out old entries automatically is rather antisocial!
+     */
+    /*memset(dst, 0, sizeof(*dst) * 256);*/
 
     for ( ; ; )
     {